package com.gionee.survey.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gionee.survey.bean.Question;
import com.gionee.survey.dao.IQuestionDao;
import com.gionee.survey.service.IQuestionService;

/**
 * 
 * @author yuwei
 * @time 2017年4月13日 下午4:47:51
 */
@Service
public class QuestionServiceImpl implements IQuestionService {
	@Resource
	private IQuestionDao questionDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return questionDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Question record) {
		return questionDao.insert(record);
	}

	@Override
	public int insertSelective(Question record) {
		return questionDao.insertSelective(record);
	}

	@Override
	public Question selectByPrimaryKey(String id) {
		return questionDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Question record) {
		return questionDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Question record) {
		return questionDao.updateByPrimaryKey(record);
	}
	
	@Override
	public List<Question> selectBySurveyId(String surveyId) {
		return questionDao.selectBySurveyId(surveyId);
	}

	public IQuestionDao getQuestionDao() {
		return questionDao;
	}
	public void setQuestionDao(IQuestionDao questionDao) {
		this.questionDao = questionDao;
	}

}
